#define _CRT_SECURE_NO_WARNINGS 1
#include "stack.h"

void test1() {
	stack ps;
	stackInit(&ps);

	stackPush(&ps, 1);
	stackPush(&ps, 2);
	stackPush(&ps, 3);
	stackPush(&ps, 4);
	stackPush(&ps, 5);
	stackPush(&ps, 6);
	stackPush(&ps, 7);
	stackPush(&ps, 8);
	stackPush(&ps, 9);

	while (!stackEmpty(&ps)) {
		printf("%d ", stackTop(&ps));
		StackPop(&ps);
	}

	stackDestroy(&ps);
}

int main() {
	test1();
	return 0;
}